package org.example.exp3.exam4;

public class RoomELight {
   private boolean state = false;
   
   public void switchState() {
      state = !state;
      System.out.println("RoomELight的开关状态为：" + state);
   }
}